﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador.Master" AutoEventWireup="true" CodeBehind="UI_Students_Report.aspx.cs" Inherits="Espam.Idiomas.Decimo.Tesis.Web.UI_Students_Report"  EnableEventValidation="false" EnableViewStateMac="false" ViewStateEncryptionMode="Never"  %>
<%@ Register  assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 37px;
        }
    </style>
     <style type="text/css">
        .fontDt {
            font-size: 9px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <script type="text/javascript">
      window.onload = function () {
          var seconds = 3;
          setTimeout(function () {
              document.getElementById("<%=lblvalida.ClientID %>").style.display = "none";
             }, seconds * 1000);
         };
</script>
    <script type="text/javascript">
        function openModal() {
            $('#flexModal').modal('show');
        }
</script>
       <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
     <div id="page-wrapper">
            <div class="page-content">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="page-title">
                            <h1>Matr&iacute;cula
                                <small>M&oacute;dulos Disponibles</small>
                            </h1>
                            <ol class="breadcrumb">
                                <li class="active">
                                 <asp:Label ID="lblvalida" runat="server" Text="" Visible="False"></asp:Label></li>
                                <li class="pull-right">
                                    <div id="reportrange" class="btn btn-green btn-square date-picker">
                                        <i class="fa fa-calendar"></i>
                                        <span class="date-range"></span> <i class="fa fa-caret-down"></i>
                                    </div>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <!-- end PAGE TITLE AREA -->
            </div>
          <!-- end PAGE TITLE ROW -->
                <div class="row">
               <!-- Validation Examples -->
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Datos Matr&iacute;cula</h4>
                                </div>
                                <div class="portlet-widgets">
                                    <a data-toggle="collapse" data-parent="#accordion" href="#validationExamples"><i class="fa fa-chevron-down"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="validationExamples" class="panel-collapse collapse in">
                                <div class="portlet-body">
                                   
                                <div class="portlet-body">
                                <div class="table-responsive">
                                    <div runat="server" id="idMensajeMatricula" visible="false">
                                        <h1 align="center"> <asp:Label ID="lblMensajeErrorMatricula" runat="server" Text="Label"></asp:Label></h1>
                                    </div>
                                    <table class="table">
                                        <thead>
                                            <tr>
                                                <td>Por Carrera:</td>
                                                <td>
                                                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                                        <ContentTemplate>
                                                            <asp:CheckBox ID="ckbPatronBusqueda" runat="server" OnCheckedChanged="ckbPatronBusqueda_CheckedChanged" />
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr runat="server" id="filaMatricula">
                                                <td>
                                                    <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                                                        <ContentTemplate>
                                                    <asp:Label ID="lblNivel" runat="server" Text="Nivel:"></asp:Label>
                                                     </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                                <td>
                                                     <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                        <ContentTemplate>
                                                            <asp:DropDownList ID="ddlNivel" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlNivel_SelectedIndexChanged1" ></asp:DropDownList>
                                                            
                                                            <asp:Label ID="lblCiclo" runat="server" CssClass="form-control" Visible="false" Text="Label"></asp:Label>
                                                       </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                                
                                                <td>
                                                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                                        <ContentTemplate>
                                                            <asp:Label ID="lblHorario" runat="server" Text="Horario:"></asp:Label>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                                        
                                                <td>
                                                     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                        <ContentTemplate>
                                                             <asp:DropDownList ID="ddlHorario" CssClass="form-control" runat="server" OnSelectedIndexChanged="ddlHorario_SelectedIndexChanged"></asp:DropDownList>
                                                             <asp:DropDownList ID="ddlCarrera" runat="server" CssClass="form-control" Visible="false" OnSelectedIndexChanged="ddlCarrera_SelectedIndexChanged"></asp:DropDownList>
                                                     </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                            </tr>
                                            <tr runat="server" id="fila2Matricula" visible="true">
                                                <td></td>
                                                <td></td>
                                                <td><asp:Button ID="btnCancelar" runat="server" Text="Cancelar" CssClass="btn btn-block" OnClick="btnCancelar_Click" /></td>
                                                <td><asp:Button ID="btnGenerarReporte" runat="server" Text="Generar Reporte" CssClass="btn btn-dark-blue" OnClick="btnGenerarReporte_Click" /></td>
                                            </tr>
                                        </tbody>
                                    </table>

                                </div>
                            </div>
                                </div>
                            </div>
                        </div>
                    </div>
            
             </div>
           

           <div class="row">
        
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Alumnos Matriculados</h4>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="Div1" class="panel-collapse collapse in">
                                <div class="portlet-body" >
                                   
                                <div class="portlet-body">
                                     
                                     <div class="table-responsive">
                                          <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                        <ContentTemplate>
                                    <asp:GridView ID="gvAlumnosMatriculados" Width="100%" runat="server" DataKeyNames="idAlumno"
                                        AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal"  
                                         BackColor="White" BorderColor="#336666" 
                                        BorderStyle="Double" BorderWidth="3px" OnRowDeleting="gvAlumnosMatriculados_RowDeleting" 
                                        OnLoad="gvAlumnosMatriculados_Load"
                                        OnPreRender="gvAlumnosMatriculados_PreRender">
                                        <Columns>
                                            <asp:BoundField DataField="num" HeaderText="N°." />
                                            <asp:BoundField DataField="apellidos" HeaderText="APELLIDOS" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="nombres" HeaderText="NOMBRES" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="estadoMatricula" HeaderText="ESTADO" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="modulo" HeaderText="MODULO" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="numeroMatricula" HeaderText="MATRÍCULA" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:CommandField AccessibleHeaderText="Desvincular" ButtonType="Button" DeleteText="X" ShowDeleteButton="True" HeaderText="RETIRAR">
                                            <ItemStyle BackColor="White" />
                                            </asp:CommandField>
                                        </Columns>
                                    </asp:GridView>
                                                               </ContentTemplate>
                                                    </asp:UpdatePanel>
                                        
                            </div>
                                    </div>
                                       <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                <ProgressTemplate>
                                    <div id="Background" class="Background"></div>
                                        <div id="Progress" class="progress">
                                            <h6> <p style="text-align:center"> <b>Procesando Datos, Espere por favor... <br /></b> </p> </h6>
                                        </div>
                                </ProgressTemplate>
                             </asp:UpdateProgress>
                                       
                                </div>
                            </div>
                        </div>
                    </div>
                    
             </div>
            

         <div class="modal modal-flex fade" id="flexModal" tabindex="-1" role="dialog" aria-labelledby="flexModalLabel" aria-hidden="true" >
        <div class="modal-dialog" >
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="flexModalLabel">CONFIRMACIÓN DE ELIMINACIÓN </h4>
                </div>
               
                <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                 <ContentTemplate>
                      <div class="modal-body" >
                            <asp:Label ID="lblMensajeDecision" Text="ESTA SEGURO DE RETIRAR AL ALUMNO???" runat="server"></asp:Label>
                            <asp:HiddenField ID="HfDeleteID" runat="server"/>
                        </div>

                           <div class="modal-footer">                          
                                <button  class="btn btn-green"data-dismiss="modal"aria-hidden="true">Cancelar</button>
                                <asp:Button ID="btnDelete" runat="server" Text="Confirmar" CssClass="btn btn-blue" OnClick="btnDelete_Click" />
                           </div>

                 </ContentTemplate>
                 <Triggers>
                     <asp:AsyncPostBackTrigger ControlID="btnDelete" />
                 </Triggers>
             </asp:UpdatePanel>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>



     </div>
</asp:Content>
